﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Skynet.LiteFoundation.BusinessEntities;
using Skynet.LiteFoundation;
using Microsoft.Practices.Unity;
namespace Skynet.LiteClient
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        [Dependency]
        public Infrastructure.WpfClient.Services.Navigation.INavigationService NavigationService{ get; set; }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
           
            
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {

        }
        private void BodySingleWorkspace_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            if ((bool)e.NewValue == true)
            {
                this.frameWorkspace.Visibility = System.Windows.Visibility.Collapsed;
                this.TabWorkspace.Visibility = System.Windows.Visibility.Collapsed;
            }
        }
        private void frameWorkspace_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            if ((bool)e.NewValue == true)
            {
                this.BodySingleWorkspace.Visibility = System.Windows.Visibility.Collapsed;
                this.TabWorkspace.Visibility = System.Windows.Visibility.Collapsed;
            }
        }

        private void TabWorkspace_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            if ((bool)e.NewValue == true)
            {
                this.BodySingleWorkspace.Visibility = System.Windows.Visibility.Collapsed;
                this.frameWorkspace.Visibility = System.Windows.Visibility.Collapsed;
            }
        }

        private void ExamCategoriesMaintenance_Click(object sender, RoutedEventArgs e)
        {
            this.NavigationService.Navigate<Skynet.LiteAdministration.Views.MaintenanceExamCategories.MaintenanceExamCategoriesView>(Infrastructure.WpfClient.Constants.RegionNames.BodySingleWorkspace);
        }
    }
}
